package com.hcy.usermodel.dto.request;


import com.hcy.rabbitbasicmodel.signl.Add;
import com.hcy.rabbitbasicmodel.signl.Delete;
import com.hcy.rabbitbasicmodel.signl.Query;
import com.hcy.rabbitbasicmodel.signl.Select;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author huchenying
 * Description:
 * @Date 2021/11/20 13:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserAuthRequestDTO {
    private static final long serialVersionUID = 1L;

    private String token;
    /**
     * 业务标识
     */
    @NotNull(groups = { Select.class})
    private String businessCode;

    /**
     * 用户昵称
     */
    @NotNull(groups = Add.class)
    private String nickname;

    /**
     * 用户登录名称
     */
    @NotNull(groups = {Add.class, Select.class, Delete.class})
    private String username;
    /**
     * 用户登录密码
     */
    @NotNull(groups = Add.class)
    private String password;

    private String phone;

    private String code;

    @NotNull(groups = Query.class)
    private Integer pageNO;
    @NotNull(groups = Query.class)
    private Integer pageSize;
}
